package com.xueshishasha.oa.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.xueshishasha.oa.model.AddressBook;

public interface AddressBookService {

	public AddressBook getInfo(String id);

	public void updateInfo(AddressBook addressBook);

	public Serializable save(AddressBook addressBook);

	public void delete(AddressBook addressBook);

	public List<AddressBook> getAll();

	public AddressBook getModelById(Serializable id);

	public List<AddressBook> getModels(String hql, Object[] parameters);

	public void saveOrUpdate(AddressBook addressBook);

	public void saveOrUpdateAll(Collection<AddressBook> collection);

	public void update(AddressBook addressBook);

	public List<AddressBook> getByCriteria(DetachedCriteria dc);

}
